package etc

type Configuration struct {
	Name    string `toml:"name"`
	Version string `toml:"version"`

	// 上传
	Upstream upstream `toml:"upstream"`
	// 天线
	Antenna antenna `toml:"antenna"`
	// 串口
	Connector connector `toml:"connector"`

	Cache cache `toml:"cache"`

	Mq mq `toml:"mq"`
}

type connector struct {
	Name   string `toml:"name"`
	Vendor string `toml:"vendor"`
	Port   uint   `toml:"port"`
}

type upstream struct {
	Url string `toml:"url"`
}

type antenna struct {
	Antennas []uint `toml:"antennas"`
	Power    uint   `toml:"power"`
}

type cache struct {
	Expir int64 `toml:"expir"`
}

type mq struct {
	Broker string `toml:"broker"`
}